package com.czkt.client;


import com.czkt.config.LoadBalancerConfig;
import com.czkt.core.AjaxResult;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;

@Service
@FeignClient(value = "systemService")//配置服务名称
@LoadBalancerClient(value = "systemService",configuration= LoadBalancerConfig.class)
public interface SysUserClient {
    @GetMapping("/system/user/list")//配置调用接口的路径  注意请求方式需要与服务一致
    AjaxResult getUserList();
}
